#include "DoWhileNode.h"
#include "SentenceBlockNode.h"
#include "Output/Console.h"

void CDoWhileNode::DebugPrint(int32_t InDepth)
{
    //print depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"do\n");

    //print depth
    for (int32_t i = 0; i < InDepth + 1; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"{\n");


    Body->DebugPrint(InDepth + 1);
    
    //print depth
    for (int32_t i = 0; i < InDepth + 1; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"}\n");


    //print depth
    for (int32_t i = 0; i < InDepth; i++)
    {
        WH::Print(U"\t");
    }

    WH::Print(U"while(");

    Condition->DebugPrint(0);

    WH::Print(U");\n");

}